package Method_01;

public abstract class Poll<T extends Comparable<T>> {
	
	/**
	 * Returns whether the node is the success case, or the location of the node
	 *
	 * @param pn : PollableNode
	 * 
	 * @return -1 node goes to the beginning, 0 is not a success, 1 node is a success, 2 node goes at end
	 */
	public abstract int isSuccess(PollableNode<T> pn);
	
}
